﻿//创建时间: 2010-11-18
//创建作者: 李晓忠
//功能说明: CMS系统 文件上传
//修改: 2010-11-18
using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


using TRPOP.Common;
using TRPOP.CMS.Web.UI;


using TRPOP.CMS.Business;
using TRPOP.CMS.Model;
using Newtonsoft.Json;

namespace TRPOP.CMS.Web.Admin
{
    public partial class admin_upload : BaseAdmin
    {

        #region 页面变量
 
        protected string m_strType = "";
        protected int m_intNodeId = 0;

        #endregion

        #region 页面事件
        protected void Page_Load(object sender, EventArgs e)
        {

            m_strType = RequestHelper.RequestString("type");
            m_intNodeId = RequestHelper.RequestInt("nodeid");

            if (!IsPostBack)
            {
                LoadBase();
                BindData();
            }

        }

      
        #endregion

        #region 页面方法

        public void LoadBase()
        {
            string strModel = "";
            switch (m_strType.ToLower())
            { 
                case "img_picker":
                    strModel = RequestHelper.RequestString("mode");
                    base.Transfer("admin_img_picker.aspx?nodeid="+m_intNodeId+"&model="+strModel);
                    break;
                case "attach":
                    strModel = RequestHelper.RequestString("mode");
                    base.Transfer("admin_attach.aspx?nodeid=" + m_intNodeId + "&model=" + strModel);
                    break;
              
            }

        }

        public void BindData()
        {


        }

        #endregion
    }
}
